<!-- Copyright (c) 2019-2020 十三 all rights reserved. -->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>NewBee商城-购物车</title>
    <link rel="stylesheet" th:href="@{/css/iconfont.css}">
    <link rel="stylesheet" th:href="@{/css/common.css}">
    <link rel="stylesheet" th:href="@{/styles/header.css}">
    <link rel="stylesheet" th:href="@{/styles/cart.css}">
    <link rel="stylesheet" th:href="@{/templates/manager/plugins/sweetalert/sweetalert.css}"/>
</head>
<body>

<div id="cart">
    <div class="banner_x center">
        <a th:href="@{/index}" target="_blank">
            <div class="logo fl">
                <img src="/image/new-bee-logo-3.png"/>
            </div>
        </a>

        <div class="wdgwc fl ml20">购物车</div>
        <div class="wxts fl ml20">温馨提示：产品是否购买成功，以最终下单为准哦，请尽快结算</div>
        <div class="clear"></div>
    </div>
    <div class="cart_line"></div>
    <div class="cart_bg">
        <th:block th:if="${#lists.isEmpty(value)}">
            <div class="list center">
                <img style="position: absolute;margin-top: 16px;left: 45%;" th:src="@{/mall/image/null-content.png}">
            </div>
        </th:block>
        <th:block th:unless="${#lists.isEmpty(value)}">
            <div class="list center">
                <div class="top2 center">
                    <div class="sub_top fl">
                    </div>

                    <div class="sub_top fl">商品名称</div>
                    <div class="sub_top fl">单价</div>
                    <div class="sub_top fl">数量</div>
                    <div class="sub_top fl">小计</div>
                    <div class="clear"></div>
                </div>
                <th:block th:each="item : ${value}">
                    <div class="content2 center">
                        <div class="sub_content fl ">
                        </div>
                        <div class="sub_content cover fl"><img th:src="@{${item.getBook().getBookImg()}}"></div>
                        <div class="sub_content fl ft20" th:text="${item.getBook().getBookName()}">商品名称</div>
                        <div class="sub_content fl" th:text="${item.getBook().getPrice()+'元'}">1299元</div>
                        <div class="sub_content fl"><span th:text="${item.getBookNum()}"></span></div>
                        <div class="sub_content fl" th:text="${item.getBookNum()*item.getBook().getPrice()+'元'}">1299元</div>
<!--                        <div class="sub_content fl" th:text="${item.getOrderNum()}"></div>-->
                    </div>
                </th:block>
            </div>
        </th:block>
        </div>
    </div>
</div>
</body>

</html>